﻿<div class="searchbar">
    <a href='<%= "search_default.htm?s=1&" + SearchQuery.ToString()%>' style="margin-left:0px"><img id="search0" src='<%=SearchQuery.HasShuxing?"image/z_树形-选后.png":"image/z_树形-正常.png" %>'/></a>
    <a href='<%= "search_branch.htm?s=1&" + SearchQuery.ToString()%>'><img id="search1" src='<%=SearchQuery.HasZhiye?"image/z_枝叶-选后.png":"image/z_枝叶-正常.png" %>'/></a>
    <a href='<%= "search_leaf.htm?s=1&" + SearchQuery.ToString()%>'><img id="search2" src='<%=SearchQuery.HasYexi?"image/z_单叶-选后.png":"image/z_单叶-正常.png" %>'/></a>
    <a href='<%= "search_flower.htm?s=1&" + SearchQuery.ToString()%>'><img id="search3" src='<%=SearchQuery.HasHuaxing?"image/z_花果-选后.png":"image/z_花果-正常.png" %>'/></a>
    <a href='<%= "search_skin.htm?s=1&" + SearchQuery.ToString()%>'><img id="search4" src='<%=SearchQuery.HasShupi?"image/z_皮干-选后.png":"image/z_皮干-正常.png" %>'/></a>
    <a href='<%= "search_search.htm?s=1&" + SearchQuery.ToString()%>' style="margin-left:25px"><img id="imgresult" src="image/z_button_finish.png"/></a>
</div>
<script type="text/javascript">
    var i = 0;
    var nav = "";
    var items = ["search_default", "search_branch", "search_leaf", "search_flower", "search_skin"];
    for (i = 0; i < items.length; ++i) {
        nav = "search" + i;
        var elem = document.getElementById(nav);
        if (elem == null)
            continue;
        if (document.location.href.indexOf(items[i]) != -1) {
            elem.src = elem.src.replace("正常", "选中").replace("选后", "选中");
            elem.src = elem.src.replace(encodeURI("正常"), encodeURI("选中")).replace(encodeURI("选后"), encodeURI("选中"));
        }
    }
</script>